package com.lkl.dao;

import com.lkl.entity.TgHotel;
import com.lkl.entity.TgHotelHome;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * (TgHotel)表数据库访问层
 *
 * @author makejava
 * @since 2022-03-31 15:53:15
 */
@Mapper
public interface TgHotelDao {

    List<TgHotel> findByName(String name);

    List<TgHotel> findAll();

    TgHotelHome findHomeByIdAndHotelId(@Param("hotelId") Integer hotelId,@Param("homeId") Integer homeId);

    int updateHotelHomeNum(@Param("num") Integer num,@Param("homeId") Integer homeId);

    TgHotel findHotelById(Integer hotelId);

    TgHotelHome findHomeById(Integer homeId);

    int updateHotelHomeStatus(@Param("status") Integer status, @Param("homeId") Integer homeId);
}